package com.wwl.cms.utils.designModeTest.command;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/9 15:17
 * @description:
 */
public class LightOnCommand implements Command {
    //聚合
    LightReceiver light;
    //构造器
    public LightOnCommand(LightReceiver light){
        this.light=light;
    }
    @Override
    public void execute(){
        light.on();
    }

    @Override
    public void undo() {
        light.off();
    }
}
